package com.tanhua.dubbo.server.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tanhua.common.mapper.QuestionnaireMapper;
import com.tanhua.common.pojo.Questionnaire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @ClassName: QuestionnaireService
 * @Author:王晨晗
 * @Description: 问卷列表业务
 * @Date: 2022/01/10/17:05
 */
@Service
public class QuestionnaireService {
    @Autowired
    private QuestionnaireMapper questionnaireMapper;

    /**
     * @description 查询所有的问卷
     * @return
     */
    public List<Questionnaire> findAll(){
        //执行查询所有问卷并返回数据信息
        return questionnaireMapper.selectList(new QueryWrapper<>());
    }
}
